﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zeny.Common.Domain;

namespace Zeny.Data.Domain.Exp
{
    public class UserEntity : BaseEntity
    {
        
        /**
         * 登录名
         */
        public string loginCode {get; set; }
        
        /**
         * 密码
         */
        public string password { get; set; }

        /**
         * 名称
         */
        public string name { get; set; }

        /**
         * email地址
         */
        public string email { get; set; }

        /**
         * 电话
         */
        public string phone { get; set; }

        /**
         * 地址
         */
        public string address { get; set; }

        /**
         * 备注
         */
        public string memo { get; set; }

        /**
         * 创建时间
         */
        public DateTime? createTime { get; set; }

        /**
         * 修改时间
         */
        public DateTime? modifyTime { get; set; }

        /**
         * 版本号
         */
        public long? versionNo { get; set; }

        public override bool Equals(object obj)
        {
            UserEntity other = obj as UserEntity;

            return this.address == other.address && this.createTime == other.createTime && this.email == other.email && this.loginCode == other.loginCode && this.memo == other.memo && this.modifyTime == other.modifyTime && this.name == other.name && this.password == other.password && this.phone == other.phone && this.versionNo == other.versionNo;
        }
    }
}
